/*
 * @Author: your name
 * @Date: 2020-07-30 14:47:57
 * @LastEditTime: 2020-07-30 16:39:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \dcg-vue-init\src\store\modules\user.js
 */

const state = {
  role: ''
}

const mutations = {
  role(state, payload) {
    state.role = payload
  }
}

const actions = {
  role({ commit }, payload) {
    commit('role', payload)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
